<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:body>
	<ui:composition template="/templates/templateCRUD.xhtml">
		<ui:param name="tituloCadastro" value="Cadastro de horários" />
		<ui:param name="tituloPesquisa" value="Pesquisa de horários" />
		<ui:param name="tituloGrid" value="Lista de Avisos" />
		<ui:param name="mbean" value="${diaAtendimentoMB}" />
		<ui:define name="cadastro">
			<p:fieldset legend="Registro de horários" toggleable="true" toggleSpeed="500">
				<h:panelGrid columns="4" columnClasses="coluna-direita, coluna-esquerda, coluna-direita, coluna-esquerda" width="100%">
					<h:outputText value="Dia semana:"/>
					<h:selectOneMenu value="#{mbean.bean.diaSemana}" disabled="#{mbean.readOnly}" label="Dia Semana" required="true">
							<f:selectItems value="#{mbean.diasSemana}" var="diaSemana" itemLabel="#{diaSemana.nome}"/>
							<f:converter converterId="diaSemanaConverter"/>
					</h:selectOneMenu>
					<h:outputText value="Quantidade de consultas: "/>
					<p:inputText value="#{mbean.quantidadeConsultas}"/>
				</h:panelGrid>
			</p:fieldset>
		</ui:define>
		
		<ui:define name="pesquisa">
			<h:panelGrid columns="4" columnClasses="coluna-direita, coluna-esquerda, coluna-direita, coluna-esquerda" width="100%">
				<h:outputText value="Nome:"/>
				<h:outputText value="#{mbean.medico.nome}"/>
				<h:outputText value="Cargo:"/>
				<h:outputText value="#{mbean.medico.cargo}"/>
			</h:panelGrid>
		</ui:define>
		
		<ui:define name="gridPesquisa">
		</ui:define>
	</ui:composition>
</h:body>
</html>
